package com.lkd.service.impl;

import com.lkd.common.VMSystem;
import com.lkd.http.vo.LoginReq;
import com.lkd.http.vo.LoginResp;
import com.lkd.service.LoginService;
import com.lkd.service.PartnerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;

/**
 * @Author : Bing
 * @Date 2023/3/1 19:31
 */
@Service
public class PartnerLoginServiceImpl implements LoginService {


    @Autowired
    private PartnerService partnerService;

    /**
     * 合作商登录
     * @param req
     * @return
     * @throws IOException
     */
    @Override
    public LoginResp Login(LoginReq req) throws IOException {
        return partnerService.login(req);
    }

    /**
     * 获取登录类型
     * @return 登录类型对应的枚举
     */
    @Override
    public Integer getLoginType() {
        return VMSystem.LOGIN_PARTNER;
    }
}
